require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "mods.SnackerBar"
import "android.content.Intent"
import "android.net.Uri"
import "java.net.URLDecoder"
import "java.io.File"
import "android.content.Intent"
import "android.content.Intent"
import "android.net.Uri"
import "mods.color"
import "java.net.URLDecoder"
import "android.content.*"
import"android.view.inputmethod.InputMethodManager"
import "console"
import "android.view.*"
import "android.graphics.Typeface"
import "java.io.File"
import "android.view.animation.*"
import "android.view.animation.Animation"
import "android.graphics.*"
import "mods.andlua"
import "android.graphics.PorterDuffColorFilter"
import "android.graphics.PorterDuff"
import "android.text.SpannableString"
import "android.text.style.ForegroundColorSpan"
import "android.text.Spannable"
import "android.graphics.drawable.ColorDrawable"
import "android.graphics.Color"
import "android.support.v4.widget.*"
require "permission"
import "autotheme"
import "android.graphics.PorterDuffColorFilter"
import "android.graphics.PorterDuff"
import "android.graphics.drawable.ColorDrawable"
import "android.text.SpannableString"
import "android.text.style.ForegroundColorSpan"
import "android.text.Spannable"
import "mods.andlua"
import "mods.SnackerBar"
ztt()
main10={
  LinearLayout;
  layout_height="fill";
  orientation="vertical";
  id="ViewNight_lay1";
  backgroundColor=AndLuaB;
  layout_width="fill";
  {
    ScrollView;
    VerticalScrollBarEnabled=false;
    overScrollMode=2;
    layout_marginLeft="5dp";
    layout_marginRight="5dp";
    layout_marginTop="5dp";
    layout_marginTop="5dp";
    layout_height="fill";
    layout_width="fill";
    {
      LinearLayout;
      orientation="vertical";
      layout_height="fill";
      layout_width="fill";
      {
        CardView;
        layout_margin="5dp";
        layout_width="-1";
        elevation="0dp";
        radius=AndLuaR;
        backgroundColor=AndLuaB1;
        layout_height="-2";
        {
          LinearLayout;
          orientation="vertical";
          layout_width="-1";
          layout_height="-1";
          {
            TextView;
            layout_marginTop="10dp";
            layout_marginLeft="10dp";
            text=getLS("L_General");
            textColor=tonumber(bjzt());
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Being_pushed");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz2";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h2";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Check_the_update");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz3";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h3";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_The_navigation_bar_following_the_theme_colors");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="kg111";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="set111";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_At_the_bottom_of_the_Toast");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="kg3";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="set3";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Night_mode");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="Night_mode_s";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="Night_modeB";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            id="ztfg";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Theme");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="kg2";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="set2";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Theme_colors");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="color2";
                layout_width="20dp";
                radius="10dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="but2";
            };
          };
        };
      };
      {
        CardView;
        layout_margin="5dp";
        layout_width="-1";
        layout_height="-2";
        elevation="0dp";
        radius=AndLuaR;
        backgroundColor=AndLuaB1;
        {
          LinearLayout;
          orientation="vertical";
          layout_width="-1";
          layout_height="-1";
          {
            TextView;
            layout_marginTop="10dp";
            textColor=tonumber(bjzt());
            layout_marginLeft="10dp";
            text=getLS("L_Code_editor");
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_On_the_left_side_of_the_slide_show_by_default");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              TextView;
              layout_gravity="right";
              layout_marginRight="22dp";
              layout_height="-1";
              id="Drawable_text";
              textSize="13sp";
              gravity="center";
              textColor=TitleColor1,
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()
                items={}
                table.insert(items,getLS("L_Drawable_text_1"))
                table.insert(items,getLS("L_Drawable_text_2"))
                AlertDialog.Builder(this)
                .setTitle(getLS("L_On_the_left_side_of_the_slide_show_by_default"))
                .setItems(items,{onClick=function(l,v)
                    io.open(activity.getLuaDir().."/res/set217.LY","w"):write(v+1):close()
                    Drawable_text.Text=items[v+1]
                  end})
                .show()
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Code_style");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()
                items={}
                f=File(activity.getLuaDir().."/Style")
                ls=luajava.astable(f.listFiles() or String{})
                table.sort(ls,function(a,b)
                  return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
                end)
                for n=1,#ls do
                  if File(tostring(ls[n])).isFile() then
                    table.insert(items,ls[n].Name)
                  end
                end
                AlertDialog.Builder(this)
                .setTitle(getLS("L_Code_style"))
                .setItems(items,{onClick=function(l,v)
                    array=activity.getTheme().obtainStyledAttributes({android.R.attr.colorBackground,android.R.attr.textColorPrimary,android.R.attr.colorPrimary,android.R.attr.colorPrimaryDark,android.R.attr.colorAccent,});
                    colorBackground=array.getColor(0, 0xFF00FF);
                    textColorPrimary=array.getColor(1, 0xFF00FF);
                    colorPrimary=array.getColor(2, 0xFF00FF);
                    colorPrimaryDark=array.getColor(3, 0xFF00FF);
                    colorAccent=array.getColor(4, 0xFF00FF);
                    bjzt2 = tostring("0x"..tostring(string.upper(Integer.toHexString(colorPrimary))))
                    Theme_style=io.open(activity.getLuaDir().."/Style/"..items[v+1]):read("*a")
                    Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt2)
                    io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
                    SnackerBar.build()
                    :msg(getLS("L_Switch_success"))
                    :actionText(getLS("L_OK"))
                    :action(function()
                    end)
                    :show()
                    sxys()
                  end})
                .show()
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Automatic_formatting");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="autoF";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="autoF1";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("CheckError");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="CheckErrorS";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="CheckError";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Directly_open_the_Android_installation_package");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="swi0";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()

                if swi0.isChecked()==false then
                  wj=activity.getLuaDir().."/res/set207.LY"
                  io.open(wj,"w"):write("true"):close()
                 else
                  wj=activity.getLuaDir().."/res/set207.LY"
                  io.open(wj,"w"):write("false"):close()
                end

                wj=activity.getLuaDir().."/res/set207.LY"
                hj=io.open(wj):read("*a")
                if hj=="true" then
                  swi0.setChecked(true)
                 else
                  swi0.setChecked(false)
                end

              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Code_save_anomaly_detection");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="swi1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="but1";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Function_of_quick_bar");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="and1210";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="and121";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Popup_window_to_confirm_delete_control");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz8";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h8";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Write_a_page_suspend_button_2");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz1190";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h1190";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Write_a_page_suspend_button");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz119";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h119";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Write_a_page_suspend_button_3");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="btn_3_s";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="btn_3";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Write_a_page_suspend_button_4");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="btn_4_s";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="btn_4";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text="Java API";
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="JavaAPI_s";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="JavaAPI";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Realtime_error");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="hh124";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h124";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Word_wrap");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz299";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h229";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Compact_package");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz0219";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h0219";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Automatic_backup");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              TextView;
              layout_gravity="right";
              layout_marginRight="22dp";
              text=getLS("L_Shut_down_1");
              layout_height="-1";
              id="zdbf";
              textSize="13sp";
              gravity="center";
              textColor=TitleColor1,
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="zdbf1";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_According_to_the_line_Numbers");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="ShowLineNumbers";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="ShowLineNumbers_btn";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_font_size");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              TextView;
              layout_gravity="right";
              layout_marginRight="22dp";
              text="";
              layout_height="-1";
              id="sz21";
              textSize="13sp";
              gravity="center";
              textColor=TitleColor1,
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h21";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_background_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s22";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h22";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_font_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s23";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h23";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_keyword_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s24";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h24";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Function_of_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s25";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h25";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_class_library_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s26";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h26";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_String_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s27";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h27";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Annotation_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s28";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h28";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_color_code_completion");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s150";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h150";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Code_completion_border_text_color");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              LinearLayout;
              layout_gravity="right";
              layout_marginRight="20dp";
              layout_height="-1";
              gravity="center";
              {
                CardView;
                layout_height="20dp";
                elevation="0dp";
                id="s151";
                layout_width="20dp";
                layout_gravity="center";
              };
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h151";
            };
          };
        };
      };
      {
        CardView;
        layout_margin="5dp";
        layout_width="-1";
        layout_height="-2";
        elevation="0dp";
        radius=AndLuaR;
        backgroundColor=AndLuaB1;
        {
          LinearLayout;
          orientation="vertical";
          layout_width="-1";
          layout_height="-1";
          {
            TextView;
            layout_marginTop="10dp";
            layout_marginLeft="10dp";
            textColor=tonumber(bjzt());
            text=getLS("L_Other_1");
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Language");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              TextView;
              layout_gravity="right";
              layout_marginRight="22dp";
              text="中文";
              layout_height="-1";
              id="language_text";
              textSize="13sp";
              gravity="center";
              textColor=TitleColor1,
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="language";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_The_lua_file_encryption");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="sz02100";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h021900";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              layout_marginLeft="10dp";
              layout_height="-1";
              ColorFilter=TitleColor1;
            };
            {
              TextView;
              text=getLS("L_Lua_to_dex");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {

              Switch;
              layout_gravity="right";
              layout_marginRight="10dp";
              layout_height="-1";
              id="luatodexs";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="luatodex";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Lua_warehouse");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()
                InputLayout={
                  LinearLayout;
                  orientation="vertical";
                  Focusable=true,
                  FocusableInTouchMode=true,
                  {
                    TextView;
                    id="Prompt",
                    textSize="13sp",
                    layout_marginTop="10dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    textColor=tonumber(bjzt());
                    text=getLS("L_Please_enter_the_Lua_global_support_library_folder_path");
                  };
                  {
                    EditText;
                    layout_marginTop="5dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    id="editLH";
                    text=io.open(activity.getLuaDir().."/res/set210.LY"):read("*a")
                  };
                };

                AlertDialog.Builder(this)
                .setTitle(getLS("L_Lua_warehouse"))
                .setView(loadlayout(InputLayout))
                .setPositiveButton(getLS("L_Determine"),{onClick=function(v)
                    io.open(activity.getLuaDir().."/res/set210.LY","w"):write(editLH.Text):close()
                  end})
                .setNegativeButton(getLS("L_Cancel"),nil)
                .show()
                Typew(editLH)
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_So_warehouse");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()
                InputLayout={
                  LinearLayout;
                  orientation="vertical";
                  Focusable=true,
                  FocusableInTouchMode=true,
                  {
                    TextView;
                    id="Prompt",
                    textSize="13sp",
                    layout_marginTop="10dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    textColor=tonumber(bjzt());
                    text=getLS("L_Please_enter_the_So_global_support_library_folder_path");
                  };
                  {
                    EditText;
                    layout_marginTop="5dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    id="editLH";
                    text=io.open(activity.getLuaDir().."/res/set215.LY"):read("*a")
                  };
                };

                AlertDialog.Builder(this)
                .setTitle(getLS("L_So_warehouse"))
                .setView(loadlayout(InputLayout))
                .setPositiveButton(getLS("L_Determine"),{onClick=function(v)
                    io.open(activity.getLuaDir().."/res/set215.LY","w"):write(editLH.Text):close()
                  end})
                .setNegativeButton(getLS("L_Cancel"),nil)
                .show()
                Typew(editLH)
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Plugin_management");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="Plugin management";
              onClick=function()
                items={}
                f=File(activity.getLuaDir().."/plugin")
                ls=luajava.astable(f.listFiles() or String{})
                table.sort(ls,function(a,b)
                  return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
                end)
                for n=1,#ls do
                  if File(tostring(ls[n])).isFile()==false then
                    table.insert(items,ls[n].Name)
                  end
                end
                AlertDialog.Builder(this)
                .setTitle(getLS("L_Plugin_management"))
                .setItems(items,{onClick=function(l,v)
                    AlertDialog.Builder(this)
                    .setTitle(items[v+1])
                    .setMessage(getLS("L_Whether_to_remove_the_plugin"))
                    .setPositiveButton(getLS("L_Uninstall"),{onClick=function()
                        if os.execute("rm -r "..activity.getLuaDir().."/plugin/"..items[v+1]) then
                          SnackerBar.build()
                          :msg(getLS("L_Uninstall_the_success"))
                          :actionText(getLS("L_OK"))
                          :action(function()
                          end)
                          :show()
                         else
                          SnackerBar.build()
                          :msg(getLS("L_Unloading_failure"))
                          :actionText(getLS("L_OK"))
                          :action(function()
                          end)
                          :show()
                        end
                      end})
                    .setNegativeButton(getLS("L_Cancel"),nil)
                    .show()
                    return true
                  end})
                .show()
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Custom_syntax_highlighting");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              onClick=function()
                LuaHighlightFile=activity.getLuaDir().."/res/Highlight.lua"
                LuaHighlight0={}
                LuaHighlight00=0

                for c in io.lines(LuaHighlightFile)
                  LuaHighlight0[LuaHighlight00]=c
                  LuaHighlight00=LuaHighlight00+1
                end

                InputLayout={
                  LinearLayout;
                  orientation="vertical";
                  Focusable=true,
                  FocusableInTouchMode=true,
                  {
                    TextView;
                    id="Prompt",
                    textSize="13sp",
                    layout_marginTop="10dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    textColor=tonumber(bjzt());
                    text=getLS("L_Custom_syntax_highlighting_separated_by_a_newline");
                  };
                  {
                    EditText;
                    layout_marginTop="5dp";
                    layout_marginLeft="10dp",
                    layout_marginRight="10dp",
                    layout_width="match_parent";
                    layout_gravity="center",
                    id="editLH";
                  };
                };

                AlertDialog.Builder(this)
                .setTitle(getLS("L_Custom_syntax_highlighting"))
                .setView(loadlayout(InputLayout))
                .setPositiveButton(getLS("L_Save"),{onClick=function(v)
                    LuaHighlightText0="return {"
                    for LuaHighlightText in (editLH.Text.."\n"):gmatch('(.-)\n') do
                      LuaHighlightText0=LuaHighlightText0..'\n"'..LuaHighlightText..'",'
                    end
                    LuaHighlightText0=LuaHighlightText0.."\n}"
                    io.open(LuaHighlightFile,"w"):write(LuaHighlightText0):close()
                    SnackerBar.build()
                    :msg(getLS("L_Save_success"))
                    :actionText(getLS("L_OK"))
                    :action(function()
                    end)
                    :show()
                  end})
                .setNegativeButton(getLS("L_Cancel"),nil)
                .show()

                for i=1,#LuaHighlight0-1 do
                  if i==1 then
                    editLH.Text=string.sub(LuaHighlight0[#LuaHighlight0-i],2,-3)
                   else
                    editLH.Text=string.sub(LuaHighlight0[#LuaHighlight0-i],2,-3).."\n"..editLH.Text
                  end
                end
                Typew1(editLH)
              end,
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Custom_signature_key");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h522";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_A_custom_bar_symbols");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h5";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_The_custom_function_bar");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h566";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Donation");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="set90";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Log_out");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="h4";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Clear_the_cache");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              id="AndLuaSize0",
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="but3";
            };
          };
          {
            FrameLayout;
            layout_width="-1";
            layout_height="50dp";
            {
              ImageView;
              src="res/Metrial394.png";
              layout_width="23dp";
              ColorFilter=TitleColor1;
              layout_marginLeft="10dp";
              layout_height="-1";
            };
            {
              TextView;
              text=getLS("L_Restore_the_default_Settings");
              layout_marginLeft="50dp";
              textSize="13sp";
              textColor=TitleColor1,
              gravity="center";
              layout_height="-1";
            };
            {
              Button;
              layout_width="-1";
              style="?android:attr/buttonBarButtonStyle";
              layout_height="-1";
              layout_margin="-20dp";
              id="but37";
            };
          };
        };
      };
    };
  };
};
ztt()
ztl()
btl={
  LinearLayout;
  layout_width="fill";
  elevation="2dp";
  layout_height="55dp";
  orientation="horizontal";
  {
    LinearLayout;
    layout_width="55dp";
    gravity="center";
    id="Sideslip";
    layout_height="55dp";
    layout_marginLeft="-15dp";
    {
      ImageView;
      layout_height="25dp";
      colorFilter=tonumber(bjzt());
      layout_width="28dp";
      src="res/off.png";
    };
  };
  {
    LinearLayout;
    layout_height="fill";
    layout_weight="1";
    orientation="horizontal";
    {
      TextView;
      layout_gravity="center";
      textSize="18sp";
      text=getLS("L_The_software_Settings");
      textColor=tonumber(bjzt());
      id="bt";
      singleLine=true;
    };
  };
};
activity.ActionBar.setDisplayShowCustomEnabled(true)
activity.ActionBar.setCustomView(loadlayout(btl))
activity.ActionBar.setBackgroundDrawable(ColorDrawable(AndLuaB1))
activity.ActionBar.setElevation(0)

task(100,function()
  activity.setContentView(loadlayout(main10))
  ViewNight(ViewNight_lay1)
end)

task(200,function()
  bw(Sideslip,0x5FFFFFFF)
  Sideslip.onClick=function()
    activity.result({"","","更新主题"})
  end

  wja=activity.getLuaDir().."/res/set7.LY"
  hja=io.open(wja):read("*a")
  if hja=="true" then
    sz8.setChecked(true)
   else
    sz8.setChecked(false)
  end

  wjaa=activity.getLuaDir().."/res/set9.LY"
  hjaa=io.open(wjaa):read("*a")
  if hjaa=="true" then
    sz299.setChecked(true)
   else
    sz299.setChecked(false)
  end

  h229.onClick=function()
    if sz299.isChecked()==true then
      wj=activity.getLuaDir().."/res/set9.LY"
      io.open(wj,"w"):write("false"):close()
      sz299.setChecked(false)

      wj=activity.getLuaDir().."/res/set9.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz299.setChecked(true)
       else
        sz299.setChecked(false)
      end

     else
      sz299.setChecked(true)
      wj=activity.getLuaDir().."/res/set9.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set9.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz299.setChecked(true)
       else
        sz299.setChecked(false)
      end

    end
  end

  h8.onClick=function()
    if sz8.isChecked()==true then
      wj=activity.getLuaDir().."/res/set7.LY"
      io.open(wj,"w"):write("false"):close()
      sz8.setChecked(false)

      wj=activity.getLuaDir().."/res/set7.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz8.setChecked(true)
       else
        sz8.setChecked(false)
      end

     else
      sz8.setChecked(true)
      wj=activity.getLuaDir().."/res/set7.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set7.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz8.setChecked(true)
       else
        sz8.setChecked(false)
      end

    end
  end


  wj=activity.getLuaDir().."/res/set2.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz2.setChecked(true)
   else
    sz2.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/set211.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz02100.setChecked(true)
   else
    sz02100.setChecked(false)
  end




  wj=activity.getLuaDir().."/res/set207.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    swi0.setChecked(true)
   else
    swi0.setChecked(false)
  end

  function setS(id,file,bool,fun,cfun)
    if bool then
      if id.isChecked()==true then
        wj=activity.getLuaDir().."/res/"..file
        io.open(wj,"w"):write("false"):close()
        if type(cfun)=="function" then
          cfun()
        end
       else
        wj=activity.getLuaDir().."/res/"..file
        io.open(wj,"w"):write("true"):close()
        if type(fun)=="function" then
          fun()
        end
      end
    end
    wj=activity.getLuaDir().."/res/"..file
    hj=io.open(wj):read("*a")
    if hj=="true" then
      id.setChecked(true)
     else
      id.setChecked(false)
    end
  end

  setS(autoF,"set212.LY")
  setS(btn_3_s,"set213.LY")
  setS(JavaAPI_s,"set214.LY")
  setS(btn_4_s,"set216.LY")
  setS(CheckErrorS,"set218.LY")
  setS(Night_mode_s,"set219.LY")
  setS(luatodexs,"set220.LY")

  btn_3.onClick=function()
    setS(btn_3_s,"set213.LY",true)
  end

  btn_4.onClick=function()
    setS(btn_4_s,"set216.LY",true)
  end

  JavaAPI.onClick=function()
    setS(JavaAPI_s,"set214.LY",true)
  end

  CheckError.onClick=function()
    setS(CheckErrorS,"set218.LY",true)
  end


  Night_modeB.onClick=function()
    setS(Night_mode_s,"set219.LY",true,function()
      Theme_style=io.open(activity.getLuaDir().."/Style/Comfortable"):read("*a")
      Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt())
      io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
    end,function()
      Theme_style=io.open(activity.getLuaDir().."/Style/Default"):read("*a")
      Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt())
      io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
    end)
    activity.result({"","","注销"})
  end

  autoF1.onClick=function()
    setS(autoF,"set212.LY",true,function()
      AlertDialog.Builder(this)
      .setTitle(getLS("L_Prompt"))
      .setMessage(getLS("L_Caton"))
      .setPositiveButton(getLS("L_Determine"),nil)
      .show()
    end)
  end

  luatodex.onClick=function()
    setS(luatodexs,"set220.LY",true,function()
      AlertDialog.Builder(this)
      .setTitle(getLS("L_Prompt"))
      .setMessage(getLS("L_Lua_to_dex_Tips"))
      .setPositiveButton(getLS("L_Determine"),nil)
      .show()
    end)
  end

  wj=activity.getLuaDir().."/res/set208.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    ShowLineNumbers.setChecked(true)
   else
    ShowLineNumbers.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/set217.LY"
  hj=io.open(wj):read("*a")
  if hj=="1" then
    Drawable_text.Text=getLS("L_Drawable_text_1")
   else
    Drawable_text.Text=getLS("L_Drawable_text_2")
  end

  ShowLineNumbers_btn.onClick=function()
    if ShowLineNumbers.isChecked()==true then
      wj=activity.getLuaDir().."/res/set208.LY"
      io.open(wj,"w"):write("false"):close()
     else
      wj=activity.getLuaDir().."/res/set208.LY"
      io.open(wj,"w"):write("true"):close()
    end

    wj=activity.getLuaDir().."/res/set208.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      ShowLineNumbers.setChecked(true)
     else
      ShowLineNumbers.setChecked(false)
    end

  end

  sz2.onClick=function()
    if sz2.isChecked()==true then
      wj=activity.getLuaDir().."/res/set2.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set2.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz2.setChecked(true)
       else
        sz2.setChecked(false)
      end

     else
      wj=activity.getLuaDir().."/res/set2.LY"
      io.open(wj,"w"):write("false"):close()

      wj=activity.getLuaDir().."/res/set2.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz2.setChecked(true)
       else
        sz2.setChecked(false)
      end

    end
  end

  h2.onClick=function()
    if sz2.isChecked()==true then
      wj=activity.getLuaDir().."/res/set2.LY"
      io.open(wj,"w"):write("false"):close()
      sz2.setChecked(false)

      wj=activity.getLuaDir().."/res/set2.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz2.setChecked(true)
       else
        sz2.setChecked(false)
      end

     else
      sz2.setChecked(true)
      wj=activity.getLuaDir().."/res/set2.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set2.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz2.setChecked(true)
       else
        sz2.setChecked(false)
      end

    end
  end

  h021900.onClick=function()
    if sz02100.isChecked()==true then
      wj=activity.getLuaDir().."/res/set211.LY"
      io.open(wj,"w"):write("false"):close()
      sz02100.setChecked(false)
     else
      sz02100.setChecked(true)
      wj=activity.getLuaDir().."/res/set211.LY"
      io.open(wj,"w"):write("true"):close()
    end

    wj=activity.getLuaDir().."/res/set211.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      sz02100.setChecked(true)
     else
      sz02100.setChecked(false)
    end

  end

  wj=activity.getLuaDir().."/res/set3.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz3.setChecked(true)
   else
    sz3.setChecked(false)
  end

  sz3.onClick=function()
    if sz3.isChecked()==true then
      wj=activity.getLuaDir().."/res/set3.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set3.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz3.setChecked(true)
       else
        sz3.setChecked(false)
      end

     else
      wj=activity.getLuaDir().."/res/set3.LY"
      io.open(wj,"w"):write("false"):close()

      wj=activity.getLuaDir().."/res/set3.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz3.setChecked(true)
       else
        sz3.setChecked(false)
      end

    end
  end

  function g()
    jk.hide()
  end

  function g1()
    dialog5.hide()
  end

  function Toas(a)
    SnackerBar.build()
    :msg(a)
    :actionText(getLS("L_OK"))
    :action(function()
    end)
    :show()
  end

  function Gae(pass1,pass,alias)
    require "import"
    import "android.widget.*"
    import "android.view.*"
    import "java.io.File"
    import "mods.andlua"
    call("g")
    if File("/sdcard/AndLua/keys/"..alias..".jks").isFile() then
      call("Toas",getLS("L_File_already_exists"))
      call("g1")
     else
      function Generate(pass1,pass,alias)
        require "import"
        import "kellinwood.security.zipsigner.optional.DistinguishedNameValues"
        import "kellinwood.security.zipsigner.optional.CertCreator"
        distinguishedNameValues = DistinguishedNameValues();
        distinguishedNameValues.setCommonName("AndLua+");
        distinguishedNameValues.setOrganization("AndLua+");
        distinguishedNameValues.setOrganizationalUnit("AndLua+");
        distinguishedNameValues.setStreet("");
        distinguishedNameValues.setLocality("");
        distinguishedNameValues.setCountry("");
        distinguishedNameValues.setState("CN");
        CertCreator.createKeystoreAndKey("/sdcard/AndLua/keys/"..alias..".jks",String(pass).toCharArray(),"RSA",2048,tostring(alias),String(pass1).toCharArray(),"SHA1withRSA",30,distinguishedNameValues)
      end
      local status, err = pcall(Generate,pass1,pass,alias)
      if status==true then
        TR=[[Password="]]..pass..[["
Alias="]]..alias..[["
AliasPassword="]]..pass1..[["]]
        io.open("/sdcard/AndLua/keys/"..alias..".config","w"):write(TR):close()
        call("Toas",getLS("L_Creating_a_successful"))
        call("g1")
       else
        call("Toas",getLS("L_Create_a_failure"))
        call("g1")
      end
    end
  end

  function jkss()
    jks={getLS("L_The_default")}
    import "java.io.File"
    array=luajava.astable(File("/sdcard/AndLua/keys/").listFiles())
    table.sort(array,function(a,b)
      return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
    end)
    for i=1,#array do
      jk=tostring(array[i])
      jksN11=tostring(string.sub(tostring(File(jk).getName()),-4,-1))
      if jksN11==".jks" then
        jksN=string.sub(tostring(File(jk).getName()),1,-5)
        jks[#jks+1]=jksN
      end
    end
  end

  cardNumber=getLS("L_The_default")

  h522.onClick=function()
    InputLayout={
      LinearLayout;
      layout_height="fill";
      orientation="horizontal";
      layout_width="fill";
      gravity="center";
      {
        LinearLayout;
        layout_height="fill";
        orientation="horizontal";
        layout_width="fill";
        gravity="center";
        layout_margin="15dp";
        {
          TextView;
          text=getLS("L_The_signature_key");
          textColor=TitleColor5;
          layout_marginLeft="10dp";
          textSize="18sp";
        };
        {
          Spinner;
          id="jksarr";
          layout_width="fill";
          layout_height="wrap_content";
        };
      };
    };
    AlertDialog.Builder(this)
    .setTitle(getLS("L_Custom_signature_key"))
    .setView(loadlayout(InputLayout))
    .setPositiveButton(getLS("L_Determine"),{onClick=function(v)
        io.open(activity.getLuaDir().."/res/jks","w"):write(cardNumber):close()
      end})
    .setNeutralButton(getLS("L_Generate_the_private"),{onClick=function(v)
        InputLayout={
          LinearLayout;
          orientation="vertical";
          Focusable=true,
          FocusableInTouchMode=true,
          {
            TextView;
            id="Prompt",
            textSize="13sp",
            layout_marginTop="10dp";
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            textColor=tonumber(bjzt());
            text=getLS("L_The_alias");
          };
          {
            EditText;
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            id="edit";
          };
          {
            TextView;
            id="Prompt",
            textSize="13sp",
            layout_marginTop="10dp";
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            textColor=tonumber(bjzt());
            text=getLS("L_Password");
          };
          {
            EditText;
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            id="edit1";
          };
          {
            TextView;
            id="Prompt",
            textSize="13sp",
            layout_marginTop="10dp";
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            textColor=tonumber(bjzt());
            text=getLS("L_The_alias_password");
          };
          {
            EditText;
            layout_marginLeft="10dp",
            layout_marginRight="10dp",
            layout_width="match_parent";
            layout_gravity="center",
            id="edit2";
          };
        };
        jk=AlertDialog.Builder(this)
        .setTitle(getLS("L_Generate_the_key"))
        .setView(loadlayout(InputLayout))
        .setPositiveButton(getLS("L_Create"),{onClick=function(v)
            if edit1.Text=="" or edit2.Text=="" or edit.Text=="" then
              SnackerBar.build()
              :msg(getLS("L_Cannot_be_left_blank"))
              :actionText(getLS("L_OK"))
              :action(function()
              end)
              :show()
             else
              dialog5= ProgressDialog(this)
              dialog5.setProgressStyle(ProgressDialog.STYLE_SPINNER)
              dialog5.setMessage(getLS("L_In_the_create").."...")
              dialog5.setCancelable(true)
              dialog5.setCanceledOnTouchOutside(false)
              dialog5.show()
              thread(Gae,edit2.Text,edit1.Text,edit.Text)
            end
          end})
        .setNegativeButton(getLS("L_Cancel"),nil)
        .show()
        Typew1(edit)
      end})
    .setNegativeButton(getLS("L_Cancel"),nil)
    .show()
    aet=0
    jkss()
    adp = ArrayAdapter(activity,android.R.layout.simple_spinner_item,jks)
    adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    jksarr.setAdapter(adp)
    for i=0,#jks do
      jksN2=tostring(File(tostring(jks[i])).getName())
      if jksN2==tostring(io.open(activity.getLuaDir().."/res/jks"):read("*a")) then
        jksarr.setSelection(i-1,true);
      end
    end
    jksarr.onItemSelected=function(p,v,s,i)
      cardNumber = tostring(v.Text)
    end

  end

  h3.onClick=function()
    if sz3.isChecked()==true then
      wj=activity.getLuaDir().."/res/set3.LY"
      io.open(wj,"w"):write("false"):close()
      sz3.setChecked(false)

      wj=activity.getLuaDir().."/res/set3.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz3.setChecked(true)
       else
        sz3.setChecked(false)
      end

     else
      sz3.setChecked(true)
      wj=activity.getLuaDir().."/res/set3.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set3.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz3.setChecked(true)
       else
        sz3.setChecked(false)
      end

    end
  end

  h119.onClick=function()
    if sz119.isChecked()==true then
      wj=activity.getLuaDir().."/res/set119.LY"
      io.open(wj,"w"):write("false"):close()
      sz119.setChecked(false)

      wj=activity.getLuaDir().."/res/set119.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz119.setChecked(true)
       else
        sz119.setChecked(false)
      end

     else
      sz119.setChecked(true)
      wj=activity.getLuaDir().."/res/set119.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set119.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        sz119.setChecked(true)
       else
        sz119.setChecked(false)
      end

    end
  end

  h1190.onClick=function()
    if sz1190.isChecked()==true then
      wj=activity.getLuaDir().."/res/set209.LY"
      io.open(wj,"w"):write("false"):close()
      sz1190.setChecked(false)
     else
      sz1190.setChecked(true)
      wj=activity.getLuaDir().."/res/set209.LY"
      io.open(wj,"w"):write("true"):close()
    end

    wj=activity.getLuaDir().."/res/set209.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      sz1190.setChecked(true)
     else
      sz1190.setChecked(false)
    end

  end

  wj=activity.getLuaDir().."/res/set209.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz1190.setChecked(true)
   else
    sz1190.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/set119.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz119.setChecked(true)
   else
    sz119.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/set121.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    and1210.setChecked(true)
   else
    and1210.setChecked(false)
  end

  and121.onClick=function()
    if and1210.isChecked()==true then
      wj=activity.getLuaDir().."/res/set121.LY"
      io.open(wj,"w"):write("false"):close()
     else
      wj=activity.getLuaDir().."/res/set121.LY"
      io.open(wj,"w"):write("true"):close()
    end

    wj=activity.getLuaDir().."/res/set121.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      and1210.setChecked(true)
     else
      and1210.setChecked(false)
    end

  end

  wj=activity.getLuaDir().."/res/set201.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    hh124.setChecked(true)
   else
    hh124.setChecked(false)
  end

  h124.onClick=function()
    if hh124.isChecked()==true then
      wj=activity.getLuaDir().."/res/set201.LY"
      io.open(wj,"w"):write("false"):close()
     else
      wj=activity.getLuaDir().."/res/set201.LY"
      io.open(wj,"w"):write("true"):close()
      AlertDialog.Builder(this)
      .setTitle(getLS("L_Prompt"))
      .setMessage(getLS("L_Caton"))
      .setPositiveButton(getLS("L_Determine"),nil)
      .show()
    end

    wj=activity.getLuaDir().."/res/set201.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      hh124.setChecked(true)
     else
      hh124.setChecked(false)
    end

  end

  wj=activity.getLuaDir().."/res/set206.LY"
  hj=io.open(wj):read("*a")
  if hj=="chinese" then
    language_text.Text="简体中文"
   else
    language_text.Text="English"
  end

  language.onClick=function()
    wj=activity.getLuaDir().."/res/set206.LY"
    hj=io.open(wj):read("*a")
    if hj=="chinese" then
      io.open(wj,"w"):write("english"):close()
      language_text.Text="English"
      SnackerBar.build()
      :msg("Restart and take effect")
      :actionText(getLS("L_OK"))
      :action(function()
      end)
      :show()
      Refresh_language()
      Cleardata(false)
     else
      io.open(wj,"w"):write("chinese"):close()
      language_text.Text="简体中文"
      SnackerBar.build()
      :msg("重新启动生效")
      :actionText(getLS("L_OK"))
      :action(function()
      end)
      :show()
      Refresh_language()
      Cleardata(false)
    end
  end

  h4.onClick=function()
    u1=activity.getLuaDir().."/res/uid1.LY"
    u2=activity.getLuaDir().."/res/uid2.LY"
    u3=activity.getLuaDir().."/res/uid3.LY"
    u4=activity.getLuaDir().."/res/uid4.LY"
    io.open(u4,"w"):write(""):close()
    io.open(u1,"w"):write(""):close()
    io.open(u2,"w"):write(""):close()
    io.open(u3,"w"):write("false"):close()
    u6=activity.getLuaDir().."/res/set6.LY"
    io.open(u6,"w"):write("false"):close()
    import "com.tencent.connect.*"
    import "com.tencent.connect.common.*"
    import "com.tencent.tauth.*"
    AppId="101486111"
    mTencent=Tencent.createInstance(AppId,this)
    mIUiListener=IUiListener({
      onComplete=function(p1)
        if (null == p1) then
          Toast.makeText(this, "登录失败",0).show();
          return
        end
        jsonResponse = p1;
        if (null ~= jsonResponse and jsonResponse.length()==0) then
          Toast.makeText(this, "登录失败",0).show();
          return;
        end
        Toast.makeText(this, "登录成功",0).show();
        Toast.makeText(this, jsonResponse.toString(),0).show();
      end
    })

    mTencent.logout(this)

    function onActivityResult( requestCode, resultCode, data)
      if requestCode == Constants.REQUEST_LOGIN or requestCode == Constants.REQUEST_APPBAR then
        Tencent.onActivityResultData(requestCode,resultCode,data,mIUiListener);
      end
    end
    u4=activity.getLuaDir().."/res/set202.LY"
    io.open(u4,"w"):write("false"):close()
    activity.result({"","","注销"})
  end

  function gxlua(auu,b)
    wj24=activity.getLuaDir().."/res/set8.LY"
    hj24=io.open(wj24):read("*a")
    hj26=hj24:match("%["..auu..'%]="(.-)"')
    hj25=auu..']="'..hj26..'"'
    hj27=auu..']="'..b..'"'
    hj28=string.gsub(hj24,hj25,hj27)
    io.open(wj24,"w"):write(hj28):close()
  end

  but37.onClick=function()
    Cleardata(true)
    activity.result({"","","注销"})
  end

  h21.onClick=function()
    ztdx={
      LinearLayout;
      layout_height="fill";
      orientation="vertical";
      layout_width="fill";
      {
        EditText;
        layout_gravity="center";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        id="sz31";
        singleLine=true;
        MaxEms="3";
        InputType="number";
      };
      {
        SeekBar;
        layout_marginTop="10dp";
        layout_gravity="center";
        layout_width="87%w";
        Max="100";
        id="sz311";
      };
    };

    AlertDialog.Builder(this)
    .setTitle(getLS("L_The_font_size"))
    .setView(loadlayout(ztdx))
    .setPositiveButton(getLS("L_Determine"),{onClick=function(v)
        gxlua("TextSize",sz31.Text)
        sxys()
      end})
    .setNeutralButton(getLS("L_The_default"),{onClick=function(v)
        gxlua("TextSize","45")
        sxys()
      end})
    .setNegativeButton(getLS("L_Cancel"),nil)
    .show()
    sz31.setText(sz21.Text)
    sz311.setProgress(tonumber(sz21.Text))
    sz311.setOnSeekBarChangeListener{
      onProgressChanged=function()
        sz31.setText(tostring(sz311.getProgress()))
        sz31.setSelection(#sz31.Text)
      end}
    sz31.addTextChangedListener{
      onTextChanged=function(s)
        if #sz31.Text>=4 then
          sz31.setText(string.sub(sz31.Text,0,3))
         else
        end
        if sz31.Text=="" then
          sz311.setProgress(0)
         else
          sz311.setProgress(tonumber(sz31.Text))
        end
      end
    }
  end

  h5.onClick=function()
    u3=activity.getLuaDir().."/res/set5.LY"
    fy=io.open(u3):read("*a")
    fyy=fy:match('(.+) AndLua%+@LY')
    InputLayout={
      LinearLayout;
      orientation="vertical";
      Focusable=true,
      FocusableInTouchMode=true,
      {
        TextView;
        id="Prompt",
        textSize="13sp",
        layout_marginTop="10dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        layout_gravity="center",
        textColor=tonumber(bjzt());
        text=getLS("L_Enter_a_custom_symbols_separated_by_Spaces");
      };
      {
        EditText;
        layout_marginTop="5dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        layout_gravity="center",
        id="edit";
        textSize="15sp",
      };
    };
    tc=AlertDialog.Builder(this)
    .setTitle(getLS("L_A_custom_bar_symbols"))
    .setView(loadlayout(InputLayout))
    .setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
        if edit.Text=="" then
          SnackerBar.build()
          :msg(getLS("L_Please_enter_the_custom_symbols"))
          :actionText(getLS("L_OK"))
          :action(function()
          end)
          :show()
         else
          if io.open(u3,"w"):write(edit.Text.." AndLua+@LY"):close() then
            SnackerBar.build()
            :msg(getLS("L_Modify_the_success"))
            :actionText(getLS("L_OK"))
            :action(function()
            end)
            :show()
           else
            SnackerBar.build()
            :msg(getLS("L_Modify_the_failure"))
            :actionText(getLS("L_OK"))
            :action(function()
            end)
            :show()
          end
        end
      end})
    .setNegativeButton(getLS("L_Cancel"),nil)
    .show()
    edit.setText(fyy)
    Typew1(edit)
    edit.addTextChangedListener{
      onTextChanged=function(s)
        if edit.Text=="" then
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
         else
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
        end
      end
    }
  end

  h566.onClick=function()
    u3=activity.getLuaDir().."/res/s1.LY"
    fy=io.open(u3):read("*a")
    fyy=fy:match('(.+) AndLua%+@LY')
    InputLayout={
      LinearLayout;
      orientation="vertical";
      Focusable=true,
      FocusableInTouchMode=true,
      {
        TextView;
        id="Prompt",
        textSize="13sp",
        layout_marginTop="10dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        layout_gravity="center",
        textColor=tonumber(bjzt());
        text=getLS("L_Please_enter_the_function_name_separated_by_Spaces");
      };
      {
        EditText;
        layout_marginTop="5dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        layout_gravity="center",
        id="edit";
        textSize="15sp",
      };
    };
    tc=AlertDialog.Builder(this)
    .setTitle(getLS("L_The_custom_function_bar"))
    .setView(loadlayout(InputLayout))
    .setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
        if edit.Text=="" then
          SnackerBar.build()
          :msg(getLS("L_Canot_be_empty"))
          :actionText(getLS("L_OK"))
          :action(function()
          end)
          :show()
         else
          if io.open(u3,"w"):write(edit.Text.." AndLua+@LY"):close() then
            SnackerBar.build()
            :msg(getLS("L_Modify_the_success"))
            :actionText(getLS("L_OK"))
            :action(function()
            end)
            :show()
           else
            SnackerBar.build()
            :msg(getLS("L_Modify_the_failure"))
            :actionText(getLS("L_OK"))
            :action(function()
            end)
            :show()
          end
        end
      end})
    .setNegativeButton(getLS("L_Cancel"),nil)
    .show()
    edit.setText(fyy)
    Typew1(edit)
    edit.addTextChangedListener{
      onTextChanged=function(s)
        if edit.Text=="" then
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
         else
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
        end
      end
    }
  end

  function CircleButton1(view,InsideColor,radiu)
    import "android.graphics.drawable.GradientDrawable"
    drawable = GradientDrawable()
    drawable.setShape(GradientDrawable.RECTANGLE)
    drawable.setColor(InsideColor)
    drawable.setCornerRadii({radiu,radiu,radiu,radiu,radiu,radiu,radiu,radiu});
    view.setBackgroundDrawable(drawable)
  end

  function qys(a)
    wj21=activity.getLuaDir().."/res/set8.LY"
    hj21=io.open(wj21):read("*a")
    return hj21:match("%["..a..'%]="(.-)"')
  end

  function sxys()
    CircleButton1(s22,tonumber(qys("BackgroundColor")),90)
    CircleButton1(s23,tonumber(qys("TextColor")),90)
    CircleButton1(s24,tonumber(qys("KeywordColor")),90)
    CircleButton1(s25,tonumber(qys("UserwordColor")),90)
    CircleButton1(s26,tonumber(qys("BasewordColor")),90)
    CircleButton1(s27,tonumber(qys("StringColor")),90)
    CircleButton1(s28,tonumber(qys("CommentColor")),90)
    CircleButton1(s150,tonumber(qys("PanelBackgroundColor")),90)
    CircleButton1(s151,tonumber(qys("PanelTextColor")),90)
    sz21.setText(tostring(qys("TextSize")))
    wj=activity.getLuaDir().."/res/set205.LY"
    hj=tointeger(io.open(wj):read("*a"))
    color2.BackgroundColor=hj
  end

  sxys()

  h22.onClick=function()
    yss(getLS("L_The_background_color"),qys("BackgroundColor"),sj,"1")
  end
  h23.onClick=function()
    yss(getLS("L_The_font_color"),qys("TextColor"),sj1,"2")
  end
  h24.onClick=function()
    yss(getLS("L_Key_words_color"),qys("KeywordColor"),sj2,"3")
  end
  h25.onClick=function()
    yss(getLS("L_Function_of_color"),qys("UserwordColor"),sj3,"4")
  end
  h26.onClick=function()
    yss(getLS("L_The_class_library_color"),qys("BasewordColor"),sj4,"5")
  end
  h27.onClick=function()
    yss(getLS("L_String_color"),qys("StringColor"),sj5,"6")
  end
  h28.onClick=function()
    yss(getLS("L_Annotation_color"),qys("CommentColor"),sj6,"7")
  end
  h150.onClick=function()
    yss(getLS("L_The_color_code_completion"),qys("PanelBackgroundColor"),sj7,"8")
  end
  h151.onClick=function()
    yss(getLS("L_Code_completion_border_text_color"),qys("PanelTextColor"),sj8,"9")
  end
  but2.onClick=function()
    wj=activity.getLuaDir().."/res/set205.LY"
    hj=io.open(wj):read("*a")
    yss(getLS("L_Theme_colors"),hj,sj10,"10")
  end

  set3.onClick=function()
    if kg3.isChecked()==true then
      wj=activity.getLuaDir().."/res/set14.LY"
      io.open(wj,"w"):write("false"):close()
      kg3.setChecked(false)

      wj=activity.getLuaDir().."/res/set14.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        kg3.setChecked(true)
       else
        kg3.setChecked(false)
      end

     else
      kg3.setChecked(true)
      wj=activity.getLuaDir().."/res/set14.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set14.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        kg3.setChecked(true)
       else
        kg3.setChecked(false)
      end


    end
  end

  set111.onClick=function()
    if kg111.isChecked()==true then
      wj=activity.getLuaDir().."/res/set19.LY"
      io.open(wj,"w"):write("false"):close()
      kg111.setChecked(false)

      wj=activity.getLuaDir().."/res/set19.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        kg111.setChecked(true)
       else
        kg111.setChecked(false)
      end
      activity.getWindow().setNavigationBarColor(0xffffffff)
     else
      kg111.setChecked(true)
      wj=activity.getLuaDir().."/res/set19.LY"
      io.open(wj,"w"):write("true"):close()

      wj=activity.getLuaDir().."/res/set19.LY"
      hj=io.open(wj):read("*a")
      if hj=="true" then
        kg111.setChecked(true)
       else
        kg111.setChecked(false)
      end
      activity.getWindow().setNavigationBarColor(tonumber(bjzt()))
    end
  end

  wj=activity.getLuaDir().."/res/set19.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    kg111.setChecked(true)
   else
    kg111.setChecked(false)
  end

  h0219.onClick=function()
    if sz0219.isChecked()==true then
      wj=activity.getLuaDir().."/res/set203.LY"
      io.open(wj,"w"):write("false"):close()
      sz0219.setChecked(false)
     else
      wj=activity.getLuaDir().."/res/set203.LY"
      io.open(wj,"w"):write("true"):close()
      sz0219.setChecked(false)

      AlertDialog.Builder(this)
      .setTitle(getLS("L_Prompt"))
      .setMessage(getLS("Streamlining_packaging"))
      .setPositiveButton(getLS("L_Determine"),nil)
      .show()

    end
    wj=activity.getLuaDir().."/res/set203.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      sz0219.setChecked(true)
     else
      sz0219.setChecked(false)
    end
  end

  wj=activity.getLuaDir().."/res/set203.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    sz0219.setChecked(true)
   else
    sz0219.setChecked(false)
  end

  but1.onClick=function()
    if swi1.isChecked()==true then
      wj=activity.getLuaDir().."/res/set204.LY"
      io.open(wj,"w"):write("false"):close()
      swi1.setChecked(false)
     else
      wj=activity.getLuaDir().."/res/set204.LY"
      io.open(wj,"w"):write("true"):close()
      swi1.setChecked(false)
    end
    wj=activity.getLuaDir().."/res/set204.LY"
    hj=io.open(wj):read("*a")
    if hj=="true" then
      swi1.setChecked(true)
     else
      swi1.setChecked(false)
    end
  end

  wj=activity.getLuaDir().."/res/set204.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    swi1.setChecked(true)
   else
    swi1.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/set14.LY"
  hj=io.open(wj):read("*a")
  if hj=="true" then
    kg3.setChecked(true)
   else
    kg3.setChecked(false)
  end

  wj=activity.getLuaDir().."/res/background.time"
  hj=io.open(wj):read("*a")
  if hj=="0" then
    zdbf.setText(getLS("L_Shut_down_1"))
   else
    if tointeger(tointeger(hj)/60000)==0 then
      zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
     elseif tointeger(tointeger(hj)/60000)>60 then
      zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
     else
      zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
    end
  end

  zdbf1.onClick=function()
    u3=activity.getLuaDir().."/res/background.time"
    fy=io.open(u3):read("*a")
    InputLayout={
      LinearLayout;
      orientation="vertical";
      Focusable=true,
      FocusableInTouchMode=true,
      {
        TextView;
        id="Prompt",
        textSize="13sp",
        layout_marginTop="10dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        layout_gravity="center",
        textColor=tonumber(bjzt());
        text=getLS("L_Please_enter_the_automatic_backup_time_the_unit_milliseconds_0_to_shut_down");
      };
      {
        EditText;
        layout_marginTop="5dp";
        layout_marginLeft="10dp",
        layout_marginRight="10dp",
        layout_width="match_parent";
        InputType="number";
        layout_gravity="center",
        id="edit";
        textSize="15sp",
      };
    };
    tc=AlertDialog.Builder(this)
    .setTitle(getLS("L_Automatic_backup"))
    .setView(loadlayout(InputLayout))
    .setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
        if edit.Text=="" then
          SnackerBar.build()
          :msg(getLS("L_Canot_be_empty"))
          :actionText(getLS("L_OK"))
          :action(function()
          end)
          :show()
         else
          if tointeger(edit.Text)==0 then
            if io.open(u3,"w"):write(edit.Text):close() then
              SnackerBar.build()
              :msg(getLS("L_Modify_the_success"))
              :actionText(getLS("L_OK"))
              :action(function()
              end)
              :show()
             else
              SnackerBar.build()
              :msg(getLS("L_Modify_the_failure"))
              :actionText(getLS("L_OK"))
              :action(function()
              end)
              :show()
            end
            wj=activity.getLuaDir().."/res/background.time"
            hj=io.open(wj):read("*a")
            if hj=="0" then
              zdbf.setText(getLS("L_Shut_down_1"))
             else
              if tointeger(tointeger(hj)/60000)==0 then
                zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
               elseif tointeger(tointeger(hj)/60000)>60 then
                zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
               else
                zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
              end
            end
           elseif tointeger(edit.Text)<1000 then
            SnackerBar.build()
            :msg(getLS("L_Not_less_than_1_second"))
            :actionText(getLS("L_OK"))
            :action(function()
            end)
            :show()
           else
            if io.open(u3,"w"):write(edit.Text):close() then
              SnackerBar.build()
              :msg(getLS("L_Modify_the_success"))
              :actionText(getLS("L_OK"))
              :action(function()
              end)
              :show()
             else
              SnackerBar.build()
              :msg(getLS("L_Modify_the_failure"))
              :actionText(getLS("L_OK"))
              :action(function()
              end)
              :show()
            end
            wj=activity.getLuaDir().."/res/background.time"
            hj=io.open(wj):read("*a")
            if hj=="0" then
              zdbf.setText(getLS("L_Shut_down_1"))
             else
              if tointeger(tointeger(hj)/60000)==0 then
                zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
               elseif tointeger(tointeger(hj)/60000)>60 then
                zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
               else
                zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
              end
            end
          end
        end
      end})
    .setNegativeButton(getLS("L_Cancel"),nil)
    .show()
    edit.setText(fy)
    Typew1(edit)
    edit.addTextChangedListener{
      onTextChanged=function(s)
        if edit.Text=="" then
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
         else
          tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
        end
      end
    }
  end

  function sy()
    wj=activity.getLuaDir().."/res/set13.LY"
    hj=io.open(wj):read("*a")
    if hj=="1" then
      CircleButton1(kg2,0xFF1976d2,90)
     elseif hj=="2" then
      CircleButton1(kg2,0xFFFF4081,90)
     elseif hj=="3" then
      CircleButton1(kg2,0xFF607D8B,90)
     elseif hj=="4" then
      CircleButton1(kg2,0xFF455A64,90)
     elseif hj=="5" then
      CircleButton1(kg2,0xFF2196F3,90)
     elseif hj=="6" then
      CircleButton1(kg2,0xFFD32F2F,90)
     elseif hj=="7" then
      CircleButton1(kg2,0xFFF44336,90)
     elseif hj=="8" then
      CircleButton1(kg2,0xFF795548,90)
     elseif hj=="9" then
      CircleButton1(kg2,0xFF5D4037,90)
     elseif hj=="10" then
      CircleButton1(kg2,0xFFFFC107,90)
     elseif hj=="11" then
      CircleButton1(kg2,0xFFFF9800,90)
     elseif hj=="12" then
      CircleButton1(kg2,0xFFF57C00,90)
     elseif hj=="13" then
      CircleButton1(kg2,0xFF9E9E9E,90)
     elseif hj=="14" then
      CircleButton1(kg2,0xFF000000,90)
     elseif hj=="15" then
      CircleButton1(kg2,0xFF388E3C,90)
     elseif hj=="16" then
      CircleButton1(kg2,0xFF8BC34A,90)
     elseif hj=="17" then
      CircleButton1(kg2,0xFF9C27B0,90)
     elseif hj=="18" then
      CircleButton1(kg2,0xff009688,90)
     elseif hj=="19" then
      CircleButton1(kg2,0xFF7870BB,90)
     else
      CircleButton1(kg2,0xFF2196F3,90)
    end
  end

  sy()

  ztfg1={
    LinearLayout;
    layout_width="fill";
    layout_height="fill";
    {
      ScrollView;
      VerticalScrollBarEnabled=false;
      overScrollMode=2;
      layout_height="fill";
      layout_width="fill";
      {
        LinearLayout;
        layout_width="fill";
        orientation="vertical";
        layout_height="fill";
        {
          LinearLayout;
          layout_marginTop="15dp";
          layout_height="80dp";
          layout_width="-1";
          layout_marginRight="15dp";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy1";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy2";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy3";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_width="-1";
          layout_marginRight="15dp";
          layout_marginLeft="15dp";
          layout_height="80dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy4";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy5";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy6";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_height="80dp";
          layout_marginRight="15dp";
          layout_width="-1";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy7";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy8";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy9";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_height="80dp";
          layout_marginRight="15dp";
          layout_width="-1";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy10";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy11";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy12";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_height="80dp";
          layout_marginRight="15dp";
          layout_width="-1";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy13";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy14";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy15";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_height="80dp";
          layout_marginRight="15dp";
          layout_width="-1";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            layout_weight="1";
            layout_width="-1";
            gravity="center";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              elevation="1dp";
              layout_width="70dp";
              id="sy16";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy17";
              layout_height="70dp";
            };
          };
          {
            LinearLayout;
            layout_weight="1";
            gravity="center";
            layout_width="-1";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              layout_width="70dp";
              id="sy18";
              layout_height="70dp";
            };
          };
        };
        {
          LinearLayout;
          layout_height="80dp";
          layout_marginRight="15dp";
          layout_marginBottom="15dp";
          layout_marginLeft="15dp";
          {
            LinearLayout;
            gravity="center";
            layout_marginLeft="12dp";
            layout_height="-1";
            {
              CardView;
              elevation="1dp";
              elevation="1dp";
              layout_width="70dp";
              id="sy19";
              layout_height="70dp";
            };
          };
        };
      };
    };
  };

  set2.onClick=function()
    ysb=AlertDialog.Builder(this)
    .setView(loadlayout(ztfg1))
    .show()
    CircleButton1(sy1,0xFF1976d2,15)
    CircleButton1(sy2,0xFFFF4081,15)
    CircleButton1(sy3,0xFF607D8B,15)
    CircleButton1(sy4,0xFF455A64,15)
    CircleButton1(sy5,0xFF2196F3,15)
    CircleButton1(sy6,0xFFD32F2F,15)
    CircleButton1(sy7,0xFFF44336,15)
    CircleButton1(sy8,0xFF795548,15)
    CircleButton1(sy9,0xFF5D4037,15)
    CircleButton1(sy10,0xFFFFC107,15)
    CircleButton1(sy11,0xFFFF9800,15)
    CircleButton1(sy12,0xFFF57C00,15)
    CircleButton1(sy13,0xFF9E9E9E,15)
    CircleButton1(sy14,0xFF000000,15)
    CircleButton1(sy15,0xFF388E3C,15)
    CircleButton1(sy16,0xFF8BC34A,15)
    CircleButton1(sy17,0xFF9C27B0,15)
    CircleButton1(sy18,0xff009688,15)
    CircleButton1(sy19,0xff7870BB,15)
    sy1.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("1"):close()
      sy()
      wj=activity.getLuaDir().."/res/1.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF1976d2")
      gxlua("PanelTextColor","0xFF1976d2")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF1976d2"):close()
    end
    sy2.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("2"):close()
      sy()
      wj=activity.getLuaDir().."/res/2.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFFF4081")
      gxlua("PanelTextColor","0xFFFF4081")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFF4081"):close()
    end
    sy3.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("3"):close()
      sy()
      wj=activity.getLuaDir().."/res/3.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF607D8B")
      gxlua("PanelTextColor","0xFF607D8B")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF607D8B"):close()
    end
    sy4.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("4"):close()
      sy()
      wj=activity.getLuaDir().."/res/4.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF455A64")
      gxlua("PanelTextColor","0xFF455A64")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF455A64"):close()
    end
    sy5.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("5"):close()
      sy()
      wj=activity.getLuaDir().."/res/5.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF2196F3")
      gxlua("PanelTextColor","0xFF2196F3")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF2196F3"):close()
    end
    sy6.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("6"):close()
      sy()
      wj=activity.getLuaDir().."/res/6.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFD32F2F")
      gxlua("PanelTextColor","0xFFD32F2F")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFD32F2F"):close()
    end
    sy7.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("7"):close()
      sy()
      wj=activity.getLuaDir().."/res/7.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFF44336")
      gxlua("PanelTextColor","0xFFF44336")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFF44336"):close()
    end
    sy8.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("8"):close()
      sy()
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      wj=activity.getLuaDir().."/res/8.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      gxlua("StringColor","0xFF795548")
      gxlua("PanelTextColor","0xFF795548")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF795548"):close()
    end
    sy9.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("9"):close()
      sy()
      wj=activity.getLuaDir().."/res/9.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF5D4037")
      gxlua("PanelTextColor","0xFF5D4037")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF5D4037"):close()
    end
    sy10.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("10"):close()
      sy()
      wj=activity.getLuaDir().."/res/10.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFFFC107")
      gxlua("PanelTextColor","0xFFFFC107")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFFC107"):close()
    end
    sy11.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("11"):close()
      sy()
      wj=activity.getLuaDir().."/res/11.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFFF9800")
      gxlua("PanelTextColor","0xFFFF9800")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFF9800"):close()
    end
    sy12.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("12"):close()
      sy()
      wj=activity.getLuaDir().."/res/12.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFFF57C00")
      gxlua("PanelTextColor","0xFFF57C00")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFF57C00"):close()
    end
    sy13.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("13"):close()
      sy()
      wj=activity.getLuaDir().."/res/13.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF9E9E9E")
      gxlua("PanelTextColor","0xFF9E9E9E")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF9E9E9E"):close()
    end
    sy16.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("16"):close()
      sy()
      wj=activity.getLuaDir().."/res/16.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF8BC34A")
      gxlua("PanelTextColor","0xFF8BC34A")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF8BC34A"):close()
    end
    sy14.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("14"):close()
      wj=activity.getLuaDir().."/res/14.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      sy()
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF000000")
      gxlua("PanelTextColor","0xFF000000")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF000000"):close()
    end
    sy15.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("15"):close()
      sy()
      wj=activity.getLuaDir().."/res/15.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF388E3C")
      gxlua("PanelTextColor","0xFF388E3C")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF388E3C"):close()
    end
    sy17.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("17"):close()
      sy()
      wj=activity.getLuaDir().."/res/17.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF9C27B0")
      gxlua("PanelTextColor","0xFF9C27B0")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF9C27B0"):close()
    end
    sy18.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("18"):close()
      sy()
      wj=activity.getLuaDir().."/res/18.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF009688")
      gxlua("PanelTextColor","0xFF009688")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF009688"):close()
    end
    sy19.onClick=function()
      wj=activity.getLuaDir().."/res/set13.LY"
      io.open(wj,"w"):write("19"):close()
      sy()
      wj=activity.getLuaDir().."/res/19.png"
      wj1=activity.getLuaDir().."/icon.png"
      LuaUtil.copyDir(wj,wj1)
      ysb.hide()
      activity.recreate()
      io.open(activity.getLuaDir().."/theme",'w')
      gxlua("StringColor","0xFF7870BB")
      gxlua("PanelTextColor","0xFF7870BB")
      io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF7870BB"):close()
    end
  end

  set90.onClick=function()
    layout={
      LinearLayout;
      orientation="vertical";
      {
        ImageView;
        scaleType="fitXY";
        layout_width="match_parent";
        src="res/donation.png",
      };
    };

    AlertDialog.Builder(this)
    .setTitle(getLS("L_Giving_the_author"))
    .setMessage(getLS("L_Donation_0"))
    .setPositiveButton(getLS("L_Pay_treasure"),{onClick=function(v)
        import "android.content.Intent"
        import "android.net.Uri"
        viewIntent = Intent("android.intent.action.VIEW",Uri.parse("https://qr.alipay.com/fkx00937fkhctswypmwirb2?t=1582042047438"))
        activity.startActivity(viewIntent)
      end})
    .setNeutralButton(getLS("L_The_next_time_a_certain"),nil)
    .setNegativeButton(getLS("L_Donation_1"),{onClick=function(v)
        AlertDialog.Builder(activity)
        .setView(loadlayout(layout))
        .show()
      end})
    .show()
  end

  function setAndLuaSize(size)
    AndLuaSize0.Text=getLS("L_Clear_the_cache").."("..size..")"
  end

  task(1000,function()
    thread(function()
      require "import"
      import "java.io.File"
      import "com.andlua.size"
      call("setAndLuaSize",size.getFormatSize(size.getFolderSize(File("/storage/emulated/0/AndroLua/cache"))+size.getFolderSize(File("/storage/emulated/0/AndLua/cache/"))))
    end)
  end)
  but3.onClick=function()
    os.execute("rm -r ".."/sdcard/AndLua/cache/")
    os.execute("rm -r ".."/sdcard/AndroLua/cache/")
    os.execute("mkdir /sdcard/AndLua/cache")
    os.execute("mkdir /sdcard/AndroLua/cache")
    SnackerBar.build()
    :msg(getLS("L_Clear_success"))
    :actionText(getLS("L_OK"))
    :action(function()
    end)
    :show()
    AndLuaSize0.Text=getLS("L_Clear_the_cache")
  end
end)

function onKeyDown(c,e)
  if c==4 then
    activity.result({"","","更新主题"})
  end
end